package com.weixing.mall.provider.api.service;

import com.weixing.mall.provider.api.fallback.BaseSetRPCFallback;
import com.weixing.mall.provider.api.fallback.SysDictRPCFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/2 17:36
 * @Modified By:
 */
@FeignClient(value ="mall-provider-cms",configuration = FeignRibbonClientAutoConfiguration.class,fallback = BaseSetRPCFallback.class)
public interface BaseSetRPC {

    @GetMapping(value = "/api/baseset/getValueByCode")
    BigDecimal getValueByCode(@RequestParam(value = "code") String code);
}
